class Circle():
    def __init__(self,r):
        self.r=r
    def get_area(self):
        return 3.14*self.r*self.r
    def get_perimeter(self):
        return 2*3.14*self.r
r=int(input('输入一个半径'))
c=Circle(r)
area=c.get_area()
perimeter=c.get_perimeter()
print(area)
print(perimeter)
